package demo01;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
 new AnnotationConfigApplicationContext("demo01");
        Person bean = context.getBean(Person.class);
        User bean1 = context.getBean(User.class);
        bean.sayHi();
        bean1.sayHello();

    }
}
